#include "wx_pch.h"
#include "DoubleTextInputDialog.h"

#ifndef WX_PRECOMP
	//(*InternalHeadersPCH(DoubleTextInputDialog)
	#include <wx/intl.h>
	#include <wx/string.h>
	//*)
#endif
//(*InternalHeaders(DoubleTextInputDialog)
//*)

//(*IdInit(DoubleTextInputDialog)
const long DoubleTextInputDialog::ID_STATICTEXT1 = wxNewId();
const long DoubleTextInputDialog::ID_STATICTEXT2 = wxNewId();
const long DoubleTextInputDialog::ID_TEXTCTRL1 = wxNewId();
const long DoubleTextInputDialog::ID_TEXTCTRL2 = wxNewId();
const long DoubleTextInputDialog::ID_BUTTON = wxNewId();
//*)

BEGIN_EVENT_TABLE(DoubleTextInputDialog,wxDialog)
	//(*EventTable(DoubleTextInputDialog)
	//*)
END_EVENT_TABLE()

DoubleTextInputDialog::DoubleTextInputDialog(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
	//(*Initialize(DoubleTextInputDialog)
	wxFlexGridSizer* FlexGridSizer1;

	Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
	SetClientSize(wxDefaultSize);
	Move(wxDefaultPosition);
	FlexGridSizer1 = new wxFlexGridSizer(0, 2, 0, 0);
	StaticText1 = new wxStaticText(this, ID_STATICTEXT1, _("Label1"), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT1"));
	FlexGridSizer1->Add(StaticText1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	StaticText2 = new wxStaticText(this, ID_STATICTEXT2, _("Label2"), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT2"));
	FlexGridSizer1->Add(StaticText2, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, wxEmptyString, wxDefaultPosition, wxSize(300,21), 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
	FlexGridSizer1->Add(TextCtrl1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	TextCtrl2 = new wxTextCtrl(this, ID_TEXTCTRL2, wxEmptyString, wxDefaultPosition, wxSize(300,21), 0, wxDefaultValidator, _T("ID_TEXTCTRL2"));
	FlexGridSizer1->Add(TextCtrl2, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	Button = new wxButton(this, ID_BUTTON, _("Okay"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON"));
	FlexGridSizer1->Add(Button, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
	SetSizer(FlexGridSizer1);
	FlexGridSizer1->Fit(this);
	FlexGridSizer1->SetSizeHints(this);

	Connect(ID_BUTTON,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&DoubleTextInputDialog::OnButtonClick);
	//*)
}

DoubleTextInputDialog::~DoubleTextInputDialog()
{
	//(*Destroy(DoubleTextInputDialog)
	//*)
}


void DoubleTextInputDialog::OnButtonClick(wxCommandEvent& event)
{
    Close();
}
